package com.ysqcould.members.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单对象 t_order
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单所属用户id */
    @Excel(name = "订单所属用户id")
    private Long userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderCode;

    /** 关联id：关于订单关联的id */
    @Excel(name = "关联id：关于订单关联的id")
    private Long connectId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String tradeName;

    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String tradePcUrl;

    /** 商品简介 */
    @Excel(name = "商品简介")
    private String tradeIntro;

    /** 数量 */
    @Excel(name = "数量")
    private Long amount;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalMoney;

    /** 订单类型：1会费缴纳，2活动报名费 */
    @Excel(name = "订单类型：1会费缴纳，2活动报名费")
    private Long orderType;

    /** 支付方式：待定 */
    @Excel(name = "支付方式：待定")
    private Long payType;

    /** 支付状态：0未支付，1已支付 */
    @Excel(name = "支付状态：0未支付，1已支付")
    private Long payStatus;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 订单参数 */
    @Excel(name = "订单参数")
    private String requestParam;

    /** 返回参数 */
    @Excel(name = "返回参数")
    private String responseParam;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setConnectId(Long connectId) 
    {
        this.connectId = connectId;
    }

    public Long getConnectId() 
    {
        return connectId;
    }
    public void setTradeName(String tradeName) 
    {
        this.tradeName = tradeName;
    }

    public String getTradeName() 
    {
        return tradeName;
    }
    public void setTradePcUrl(String tradePcUrl) 
    {
        this.tradePcUrl = tradePcUrl;
    }

    public String getTradePcUrl() 
    {
        return tradePcUrl;
    }
    public void setTradeIntro(String tradeIntro) 
    {
        this.tradeIntro = tradeIntro;
    }

    public String getTradeIntro() 
    {
        return tradeIntro;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setTotalMoney(BigDecimal totalMoney) 
    {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getTotalMoney() 
    {
        return totalMoney;
    }
    public void setOrderType(Long orderType) 
    {
        this.orderType = orderType;
    }

    public Long getOrderType() 
    {
        return orderType;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setRequestParam(String requestParam) 
    {
        this.requestParam = requestParam;
    }

    public String getRequestParam() 
    {
        return requestParam;
    }
    public void setResponseParam(String responseParam) 
    {
        this.responseParam = responseParam;
    }

    public String getResponseParam() 
    {
        return responseParam;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderCode", getOrderCode())
            .append("connectId", getConnectId())
            .append("tradeName", getTradeName())
            .append("tradePcUrl", getTradePcUrl())
            .append("tradeIntro", getTradeIntro())
            .append("amount", getAmount())
            .append("totalMoney", getTotalMoney())
            .append("orderType", getOrderType())
            .append("payType", getPayType())
            .append("payStatus", getPayStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("asId", getAsId())
            .append("requestParam", getRequestParam())
            .append("responseParam", getResponseParam())
            .toString();
    }
}
